package entities;

import java.sql.Date;



/**
 * @author HungVM
 * @version 1.0
 * @created 12-Thg10-2011 10:44:35 CH
 */
public class LoanContact {

    private double amount;
    private Customer customer;
    private Date dateStart;
    private int isAccepted;
    private int loanId;
    private LoanType loantype;
    private int period;
    private User user;
    private User userAccepted;

    public void setUserAccepted(User userAccepted) {
        this.userAccepted = userAccepted;
    }

    public User getUserAccepted() {
        return userAccepted;
    }

    public LoanContact(){

    }

    public LoanContact(double amount, Customer customer, Date dateStart, int isAccepted, int loanId, LoanType loantype, int period, User user, User userAccepted) {
        this.amount = amount;
        this.customer = customer;
        this.dateStart = dateStart;
        this.isAccepted = isAccepted;
        this.loanId = loanId;
        this.loantype = loantype;
        this.period = period;
        this.user = user;
        this.userAccepted = userAccepted;
    }

    

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public Date getDateStart() {
        return dateStart;
    }

    public void setDateStart(Date dateStart) {
        this.dateStart = dateStart;
    }

    public int isIsAccepted() {
        return isAccepted;
    }

    public void setIsAccepted(int isAccepted) {
        this.isAccepted = isAccepted;
    }

    public int getLoanId() {
        return loanId;
    }

    public void setLoanId(int loanId) {
        this.loanId = loanId;
    }

    public LoanType getLoantype() {
        return loantype;
    }

    public void setLoantype(LoanType loantype) {
        this.loantype = loantype;
    }

    public int getPeriod() {
        return period;
    }

    public void setPeriod(int period) {
        this.period = period;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    


}